package com.mrd.gtimpframe.entity;

import java.io.Serializable;
import java.util.Date;

public class DeclaCheckResult implements Serializable {
    private String id;

    private String contentId;

    private String status;

    private String creator;

    private Date createTime;

    private String description;

    private String bizStatus;

    private String otNoPassReason;

    private static final long serialVersionUID = 1L;

    public DeclaCheckResult(String id, String contentId, String status, String creator, Date createTime, String description, String bizStatus, String otNoPassReason) {
        this.id = id;
        this.contentId = contentId;
        this.status = status;
        this.creator = creator;
        this.createTime = createTime;
        this.description = description;
        this.bizStatus = bizStatus;
        this.otNoPassReason = otNoPassReason;
    }

    public DeclaCheckResult() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getContentId() {
        return contentId;
    }

    public void setContentId(String contentId) {
        this.contentId = contentId == null ? null : contentId.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getBizStatus() {
        return bizStatus;
    }

    public void setBizStatus(String bizStatus) {
        this.bizStatus = bizStatus == null ? null : bizStatus.trim();
    }

    public String getOtNoPassReason() {
        return otNoPassReason;
    }

    public void setOtNoPassReason(String otNoPassReason) {
        this.otNoPassReason = otNoPassReason == null ? null : otNoPassReason.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", contentId=").append(contentId);
        sb.append(", status=").append(status);
        sb.append(", creator=").append(creator);
        sb.append(", createTime=").append(createTime);
        sb.append(", description=").append(description);
        sb.append(", bizStatus=").append(bizStatus);
        sb.append(", otNoPassReason=").append(otNoPassReason);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DeclaCheckResult other = (DeclaCheckResult) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getContentId() == null ? other.getContentId() == null : this.getContentId().equals(other.getContentId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getBizStatus() == null ? other.getBizStatus() == null : this.getBizStatus().equals(other.getBizStatus()))
            && (this.getOtNoPassReason() == null ? other.getOtNoPassReason() == null : this.getOtNoPassReason().equals(other.getOtNoPassReason()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getContentId() == null) ? 0 : getContentId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getBizStatus() == null) ? 0 : getBizStatus().hashCode());
        result = prime * result + ((getOtNoPassReason() == null) ? 0 : getOtNoPassReason().hashCode());
        return result;
    }
}